package com.atguigu.gulimall.seckill;
class OutClass{
    public  void outp( String name){
        class InClass{
            public void x2 (int height){
              /*  age =12;
                System.out.println(age);*/
                System.out.println(name);
                height =33;
                System.out.println(height);
            }
        }
        new InClass().x2(23);
    }
}
class Person{
    String name;
    public Person(String name) {
        this.name =name;
    }
}
class Animal{
    String name;
    public Animal(String name) {
        this.name =name;
    }
}
public class Test1 {
    private int age =11;


    public static void main(String[] args) {
        ThreadLocal<Object> tr1 = new ThreadLocal<>();
        ThreadLocal<Object> tr2 = new ThreadLocal<>();
        Person p1 = new Person("gaolei");
        Animal p2 = new Animal("x2");
        tr1.set(p1);
        tr2.set(p2);
        Test1 test1 = new Test1();
/*        String s1 =new String("dd");
       String s2 = s1.intern();
        System.out.println(s1==s2);*/
    }

}
